/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chapter5.creational.abstractfactory;

import chapter5.creational.factorymethod.Animal;
import chapter5.creational.factorymethod.Snake;
import chapter5.creational.factorymethod.Tyrannosaurus;

/**
 *
 * @author ASUS
 */
public class ReptileFactory extends SpeciesFactory{

    @Override
    public Animal getAnimal(String type) {
        if("casine".equals(type))
        {
            return new Snake();
        }
        else
        {
            return new Tyrannosaurus();
        }
    }
    
}
